import register from './register';
import game from './game';
import myCenter from './myCenter';
import enter from './enter';

export default [
  ...register,
  ...game,
  ...enter,
  // 个人/团体中心首页
  {
    path: '/myCenter',
    component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/index'),
    children: [
      {
        path: '',
        name: 'MyCenter',
        component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/myCenter/index'),
        hidden: true,
        meta: { activeMenu: 'MyCenter', haveFooter: true }
      },
      ...myCenter
    ]
  },
  // 通过赛事跳转的个人中心
  {
    path: '/myCenter/:id',
    component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/index'),
    children: [
      {
        path: '',
        name: 'MyCenterGame',
        component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/myCenter/index'),
        hidden: true,
        meta: { activeMenu: 'MyCenter', haveFooter: true }
      },
      ...myCenter
    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/404/index')
  },
  {
    path: '*',
    component: () => import(/* webpackChunkName: "common" */ '@/viewMobile/404/index')
  }
];
